def accumulate(end: int) -> int:
    sum = 0
    number = 1
    while number < end:
        sum = sum + number
        number = number + 1
    return sum

number = 100
sum = accumulate(number)
print(f"1累加到{number}结果为: {sum}")

number = 200
sum = accumulate(number)
print(f"1累加到{number}结果为: {sum}")